<html>
  <head>
    <meta name="generator" content="HTML Tidy for Windows (vers 14 February 2006), see www.w3.org">
    <title>
      Basketball Scheduler
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="/css/style.css" rel="stylesheet" type="text/css">
  </head>
  <body bgcolor="#F2DAC9" text="#8D3533" link="#805D4E" vlink="#805D4E" alink="#805D4E" leftmargin="9" topmargin="9" marginwidth="9" marginheight="9">
    <script language='javascript' src='/js/overlib.js' type="text/javascript">
</script>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="170" height="1"></td>
        <td height="1"></td>
        <td height="1" width="80"></td>
      </tr>
      <tr>
        <td colspan="3">
          <img src="/images/header.png">
        </td>
      </tr>
      <tr>
        <td>
          <img src="/images/callendar.png" width="145" height="21">
        </td>
        <td>
          <img src="/images/players.png" width="113" height="21">
        </td>
        <td>
          <img src="/images/lball.png" width="68" height="21">
        </td>
      </tr>
      <tr>
        <td valign="top">
          <form name="calendar" method='post'>
            <input name="year" type="hidden" value="${year}"> 
			<input name="mon" type="hidden" value="${mon}"> 
			<input name="day" type="hidden" value="${day}">
            <input name="presence" type="hidden" value="${presence}">
			<script language="JavaScript" type="text/javascript">
				function setdate(y,m,d)
				{
						document.calendar.year.value= y;
						document.calendar.mon.value= m;
						document.calendar.day.value= d;
						document.calendar.submit();
				}
            </script> 
			${thisMonth}<br>
            ${nextMonth}<br>
          </form>
        </td>
        <td valign="top">
          ${dayMessages}<br>
        </td>
        <td valign="top">
          <img src="/images/ball${ballOnOff}.png" width="71" height="61"><br>
          <br>
          <img src="/images/info.png"><br>
          <table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td bgcolor="#F0AC8E" nowrap="nowrap">
                <font class="cdate00">No Players</font>
              </td>
            </tr>
            <tr>
              <td bgcolor="#F0AC8E" nowrap="nowrap">
                <font class="cdate01">No Ball</font>
              </td>
            </tr>
            <tr>
              <td bgcolor="#F0AC8E" nowrap="nowrap">
                <font class="cdate11">BALL &amp; PLAYERS</font>
              </td>
            </tr>
            <tr>
              <td class="cell1" nowrap="nowrap">presence</td>
            </tr>
            <tr>
              <td class="cell0" nowrap="nowrap">absence</td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td valign="top">
		<script language="JavaScript" type="text/javascript">
			function showhide(id)
			{
				var el = document.getElementById(id);
				if(el) {el.style.display = (el.style.display=="block")?"none":"block";}
			}
          </script> 
		  <img src="/images/basket.png">
        </td>
        <td valign="top">
          <a onclick="javascript:showhide('post');"><img src="/images/addpost.png" border="0"></a>
          <div id="post" style="display: none;">
            <form name="postit" method="post">
              <input name="action" type="hidden" value="addpost">
              <input name="year" type="hidden" value="${year}"> 
			  <input name="mon" type="hidden" value="${mon}"> 
			  <input name="day" type="hidden" value="${day}"> 
              <table>
                <tr>
                  <td bgcolor="#D1BCB3">
                    <table border="0">
                      <tr>
                        <td align="right">email:</td>
                        <td>
                          <input name="mail" type="text" value="${mail}" size="30" class="bfield">
                        </td>
                        <td nowrap="nowrap">
							presence: <input name="presence" type="checkbox" value="1" ${presence} class="bfield">
                        </td>
                        <td width="70%" nowrap="nowrap">
							ball:<input name="ball" type="checkbox" value="1" ${ball} class="bfield">
                        </td>
                      </tr>
                      <tr>
                        <td align="right">message:</td>
                        <td colspan="3">
                          <textarea name="posttext" cols="60" rows="4" class="bfield">${posttext}</textarea>
                        </td>
                      </tr>
                      <tr>
                        <td align="right">&nbsp;</td>
                        <td colspan="3">
                          If you post a second message for a day; previous one will be replaced. <br/>
                          When message is empty then the post for the day is deleted.
                        </td>
                      </tr>
                      <tr>
                        <td align="right">&nbsp;</td>
                        <td colspan="3">
                          <input name="" type="submit" value=" post it " class="bbutton">
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </form>
            </div>
            <br/>
            <a onclick="javascript:showhide('addfriend');"><img src="/images/addfriend.png" border="0"></a>
            <div id="addfriend" style="display: none;">
              <form name="add_friend" method="post">
            	<input name="year" type="hidden" value="${year}"> 
				<input name="mon" type="hidden" value="${mon}"> 
				<input name="day" type="hidden" value="${day}">                 
                <input name="action" type="hidden" value="addfriend">
                <table>
                  <tr>
                    <td bgcolor="#D1BCB3">
                      <table border="0">
                        <tr>
                          <td align="right" nowrap>your email:</td>
                          <td>
                            <input name="mail" type="text" value="${mail}" size="30" class="bfield">
                          </td>
                        </tr>
                        <tr>
                          <td align="right" nowrap>friend's name:</td>
                          <td>
                            <input name="fname" type="text" value="${fname}" size="30" class="bfield"><br>
                          </td>
                        </tr>
                        <tr>
                          <td align="right" nowrap>friend's email:</td>
                          <td>
                            <input name="fmail" type="text" value="${fmail}" size="30" class="bfield">
                          </td>
                        </tr>
                        <tr>
                          <td align="right">&nbsp;</td>
                          <td colspan="3">
                            When you write an e-mail that already exist; the name will be changed with the new one. <br/>
                            If the name is empty; user will be removed. <br/>
                            Here you can change your own name if you use same e-mail at the both places.
                          </td>
                        </tr>
                        <tr>
                          <td align="right">&nbsp;</td>
                          <td colspan="3">
                            <input name="" type="submit" value="add friend" class="bbutton">
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </form>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="right">&nbsp;</td>
              </tr>
            </table>
            <br>
            <a class="cdate00" href="http://basketball.bg/files/test/Official_basketball_rules_2008.pdf">Official game rules by <b>Bulgarian Basketball Federation</b> (basketball.bg)</a>
            <br>
            <font color="#F2DAC9">baskerball, team, weather, playing, fun, pleasure</font><br>
        </td>
      </tr>
    </table>
  </body>
</html>
